:root {
    --primary-color: #4a90e2;
    --background-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --section-background: #f5f5f5;
}

/* 深色主题 */
[data-theme="dark"] {
    --primary-color: #64b5f6;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #404040;
    --section-background: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background-color: var(--section-background);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 任务列表样式 */
.tasks-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.task-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.task-filters button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
}

.task-filters button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 番茄钟样式 */
.timer-display {
    text-align: center;
}

.timer {
    font-size: 4rem;
    font-weight: bold;
    margin: 2rem 0;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

/* 白噪音控制样式 */
.sound-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sound-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* 通用按钮样式 */
button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    opacity: 0.9;
}

/* 滑块样式 */
input[type="range"] {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
}
